package com.zjut.an.util.module;

import com.zjut.an.util.system.Status;


public class Search {

	private String column;
	private String rule;
	private String value;
	
	public Search(String column, String rule, String value) {
		this.column = column;
		this.rule = rule;
		if (rule.endsWith(Status.SEARCH_LIKE.getStatus())) {
			this.value = "%"+value+"%";
		} else {
			this.value = value;
		}
	}
	
	public String getColumn() {
		return column;
	}
	public String getRule() {
		return rule;
	}
	public String getValue() {
		return value;
	}
	
}
